import axios from '@/components/util/AxiosPlugin';
import GlobalUtil from '@/components/util/GlobalUtil';

/** 查询数据字典数据类型 */
export function queryPublishDictByType(setResult, parentType) {
    return axios.get('/publish-project/dictionary/queryByType?parentType='.concat(parentType)).then(data => setResult(data)).catch(e => {GlobalUtil.catchError(e)});
  }